<template>
    <div class="page_container">
        <div class="top">
            <div class="logo">
                <Logo></Logo>
            </div>
            <Topbar></Topbar>
        </div>
        <div class="bottom">
            <div class="left">
                <Menu></Menu>
            </div>
            <div class="right">
                <router-view></router-view>
            </div>
        </div>
    </div>
</template>
<script>
import Topbar from './Topbar'
import Menu from './Menu'
import Logo from './Logo'
import Footer from '../footer/Footer'

export default {
    name: 'MainLayout',
    components: {
        Topbar,
        Menu,
        Logo,
        Footer
    }
}
</script>
<style lang="scss" scoped>
body, html {
    margin: 0;
    .page_container {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        overflow-y: hidden;
        display: flex;
        flex-direction: column;
        position: relative;

        ::-webkit-scrollbar {
            display: none;
        }
        .top {
            width: 100%;
            height: 66px;
            display: flex;
            flex-direction: row;
            border-bottom: 1px solid #eaecef;
            box-shadow: 0 2px 8px #f0f1f2;

            .logo {
                min-width: 10%;
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
            }
        }
        .bottom {
            display: flex;
            flex-direction: row;
            width: 100%;
            height: calc(100vh - 66px);

            .left {
                width: 15%;
                height: 100%;
                background-color: #ffffff;
                overflow-y: scroll;
                border-right: 1px solid #eaecef;
                margin-top: -3px;
            }
            .right {
                width: 85%;
                min-height: 100%;
                padding-bottom: 70px;
                overflow-y: scroll;
            }
        }
    }
}
</style>


